package pack2;

public class PLSUser implements Comparable<PLSUser> {

	String username ;
	int imsi;
	long celllac;
	long tempo;
	double lat;
	double lon;
	double r;
	double dist;
	
	public PLSUser(String u, int i, long c, long t, double la, double lo, double raggio, double dis){
		this.username = u;
		this.imsi = i;
		this.celllac = c;
		this.tempo = t; 
		this.lat = la;
		this.lon = lo;
		this.r = raggio;
		this.dist = dis;
	}
	
	public String toString(){
		return username+","+imsi+","+celllac+","+tempo+","+lat+","+lon+","+r+","+dist;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public int getImsi() {
		return imsi;
	}

	public void setImsi(int imsi) {
		this.imsi = imsi;
	}

	public long getCelllac() {
		return celllac;
	}

	public void setCelllac(int celllac) {
		this.celllac = celllac;
	}

	public long getTempo() {
		return tempo;
	}

	public void setTempo(long tempo) {
		this.tempo = tempo;
	}
	public int compareTo(PLSUser plsu){
		return plsu.username.compareTo(username);
	}
}
